from django.conf.urls import patterns, include, url
from django.contrib import admin
import hwuque.views

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'hlc.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^add/(?P<table>\w+)/$',hwuque.views.add,name='add'),
    url(r'^lists/(?P<table>\w+)/$',hwuque.views.lists,name='lists'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^index/', hwuque.views.index,name='index'),
    url(r'^edit/(?P<table>\w+)/(?P<pk>\d+)/$',hwuque.views.edit,name='edit'),
    url(r'^delete/(?P<table>\w+)/(?P<pk>\d+)/$',hwuque.views.delete,name='delete'),
    url(r'^task_list/', hwuque.views.task_list, name='task_list'),  
    url(r'^task_add/', hwuque.views.task_add, name='task_add'),  
    url(r'^task_edit/(?P<pk>\d+)/$', hwuque.views.task_edit, name='task_edit'),  
    url(r'^task_delete/(?P<pk>\d+)/$', hwuque.views.task_delete, name='task_delete'),
)
